package PTA;

import java.util.Arrays;
import java.util.Scanner;

public class Rectangle {
	private int width;
	private int length;
	
	public Rectangle(int width, int length){
		this.width = width;
		this.length = length;
	}
	
	
	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public String toString(){
		return String.format("Rectangle [width=%d, length=%d]", width, length);
	}
	
	public int getPerimeter(){
		return (width+length)*2;
	}
	
	public int getArea(){
		return width*length;
	}

public class Circle{
	private int radius;
	
	public Circle(int radius){
		this.radius = radius;
	}

	public int getRadius() {
		return radius;
	}

	public void setRadius(int radius) {
		this.radius = radius;
	}
	
	public String toString(){
		return String.format("Circle [radius=%d]", radius);
	}
	
	public int getPerimeter(){
		return (int)(Math.PI*2*radius);
	}
	
	public int getArea(){
		return (int)(Math.PI*radius*radius);
	}
	
	public class Main{
		public static void Main(String[] args){
			Scanner in = new Scanner(System.in);
			String[] Rec = new String[2];
			String[] Cir = new String[2];
			int C=0;
			int S=0;
			for (int i = 0; i < 2; i++) {
				String a = in.nextLine();
				String[] a1 = a.split(" ");
				int b = Integer.parseInt(a1[0]);
				int c = Integer.parseInt(a1[1]);
				Rectangle r = new Rectangle (b,c);
				Rec[i] = r.toString();
				C = C +r.getPerimeter();
				S = S +r.getArea();
			}
			
			for (int j = 0; j < 2 ; j++) {
				int x = in.nextInt();
				Circle y = new Circle(x);
				
				Cir[j] = y.toString();
				C = C + y.getPerimeter();
				S = S + y.getArea();
				
			}
			System.out.println(C);
			System.out.println(S);
			System.out.println(Arrays.deepToString(Rec));
			System.out.println(Arrays.deepToString(Are));
		}
		
	}
}

}
